From 87fd15ceee9c195f428f9e329b1c223bd17b275b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 3 Sep 2008 10:38:33 +0100 Subject: [PATCH] xend: move the call to XendDevices.destroy_device_state() This patch moves the call to XendDevices.destroy_device_state() to the function _remove_domain. Previously only Xen-API calls were calling the destroy_device_state() function. Signed-off-by: Stefan Berger --- tools/python/xen/xend/XendDomain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomain.py b/tools/python/xen/xend/XendDomain.py index 8e20152a95..1e9b4b0a16 100644 --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -481,6 +481,7 @@ class XendDomain: if domid in self.domains: del self.domains[domid] + XendDevices.destroy_device_state(info) info.destroy_xapi_device_instances() else: log.warning("Attempted to remove non-existent domain.") @@ -1094,7 +1095,6 @@ class XendDomain: dominfo.metrics.destroy() self._managed_domain_unregister(dominfo) self._remove_domain(dominfo) - XendDevices.destroy_device_state(dominfo) dominfo.destroy_xapi_device_instances() -- 2.30.2